package com.example.enums;

/**
 * @author edehhjn
 * 统一错误编码和错误信息提示
 */
public enum CodeEnum {
	
	ERROR_SYS(-1,"系统错误"),
	ERRO_US(101,"自定义错误"),
	SUCCESS_US(1,"成功");
	
	private CodeEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	private Integer code;
	private String msg;
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	
	
}
